/**
 * 
 */
package com.kingdee.eas.hr.emp.client;

import java.awt.event.ActionEvent;

import javax.swing.SwingUtilities;

import com.kingdee.bos.ctrl.report.forapp.kdnote.client.DefaultNoteDataProvider;
import com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper;

/**
 * @author Administrator
 *
 */
public class EmployeeContractListUIPIEx extends EmployeeContractListUI {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6867997470139536717L;
	private static final String DENOTEFILE = "/HR/contract";

	/**
	 * @throws Exception
	 */
	public EmployeeContractListUIPIEx() throws Exception {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void actionPrint_actionPerformed(ActionEvent e) throws Exception {
		// TODO Auto-generated method stub
		KDNoteHelper helper = new KDNoteHelper();
		DefaultNoteDataProvider data = new DefaultNoteDataProvider(this.getSelectedIdForPrint());
		helper.print(DENOTEFILE, data, SwingUtilities.getWindowAncestor(this));
	}

	@Override
	public void actionPrintPreview_actionPerformed(ActionEvent e)
			throws Exception {
		// TODO Auto-generated method stub
		KDNoteHelper helper = new KDNoteHelper();
		DefaultNoteDataProvider data = new DefaultNoteDataProvider(this.getSelectedIdForPrint());
		helper.printPreview(DENOTEFILE, data, SwingUtilities.getWindowAncestor(this));
	}

	

}
